from fastapi_utils.api_model import APIModel
from pydantic import BaseModel, Field


class UserListEntity(APIModel):
    """
    用户列表实体
    """
    id: str
    username: str
    enabled: bool
    first_name: str
    last_name: str
    email: str
    groups: list

    class Config:
        allow_population_by_field_name = True
